using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class BottleInfo : GeneratedMessageLite<BottleInfo, BottleInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<BottleInfo, BottleInfo.Builder>
		{
			private bool resultIsReadOnly;
			private BottleInfo result;
			protected override BottleInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override BottleInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override BottleInfo DefaultInstanceForType
			{
				get
				{
					return BottleInfo.DefaultInstance;
				}
			}
			public uint FromUin
			{
				get
				{
					return this.result.FromUin;
				}
				set
				{
					this.SetFromUin(value);
				}
			}
			public Builder()
			{
				this.result = BottleInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(BottleInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private BottleInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					BottleInfo other = this.result;
					this.result = new BottleInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override BottleInfo.Builder Clear()
			{
				this.result = BottleInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override BottleInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new BottleInfo.Builder(this.result);
				}
				return new BottleInfo.Builder().MergeFrom(this.result);
			}
			public override BottleInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override BottleInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is BottleInfo)
				{
					return this.MergeFrom((BottleInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override BottleInfo.Builder MergeFrom(BottleInfo other)
			{
				return this;
			}
			public override BottleInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override BottleInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(BottleInfo._bottleInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = BottleInfo._bottleInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasFromUin = input.ReadUInt32(ref this.result.fromUin_);
					}
				}
				return this;
			}
			public BottleInfo.Builder SetFromUin(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFromUin = true;
				this.result.fromUin_ = value;
				return this;
			}
			public BottleInfo.Builder ClearFromUin()
			{
				this.PrepareBuilder();
				this.result.hasFromUin = false;
				this.result.fromUin_ = 0u;
				return this;
			}
		}
		public const int FromUinFieldNumber = 1;
		private static readonly BottleInfo defaultInstance;
		private static readonly string[] _bottleInfoFieldNames;
		private static readonly uint[] _bottleInfoFieldTags;
		private bool hasFromUin;
		private uint fromUin_;
		private int memoizedSerializedSize = -1;
		public static BottleInfo DefaultInstance
		{
			get
			{
				return BottleInfo.defaultInstance;
			}
		}
		public override BottleInfo DefaultInstanceForType
		{
			get
			{
				return BottleInfo.DefaultInstance;
			}
		}
		protected override BottleInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint FromUin
		{
			get
			{
				return this.fromUin_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasFromUin;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasFromUin)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.FromUin);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private BottleInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] bottleInfoFieldNames = BottleInfo._bottleInfoFieldNames;
			if (this.hasFromUin)
			{
				output.WriteUInt32(1, bottleInfoFieldNames[0], this.FromUin);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasFromUin)
			{
				num ^= this.fromUin_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			BottleInfo bottleInfo = value as BottleInfo;
			return bottleInfo != null && (this.hasFromUin == bottleInfo.hasFromUin && (!this.hasFromUin || this.fromUin_.Equals(bottleInfo.fromUin_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<BottleInfo, BottleInfo.Builder>.PrintField("FromUin", this.hasFromUin, this.fromUin_, writer);
		}
		public static BottleInfo ParseFrom(byte[] data)
		{
			return BottleInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private BottleInfo MakeReadOnly()
		{
			return this;
		}
		public static BottleInfo.Builder CreateBuilder()
		{
			return new BottleInfo.Builder();
		}
		public override BottleInfo.Builder ToBuilder()
		{
			return BottleInfo.CreateBuilder(this);
		}
		public override BottleInfo.Builder CreateBuilderForType()
		{
			return new BottleInfo.Builder();
		}
		public static BottleInfo.Builder CreateBuilder(BottleInfo prototype)
		{
			return new BottleInfo.Builder(prototype);
		}
		static BottleInfo()
		{
			BottleInfo.defaultInstance = new BottleInfo().MakeReadOnly();
			BottleInfo._bottleInfoFieldNames = new string[]
			{
				"FromUin"
			};
			BottleInfo._bottleInfoFieldTags = new uint[]
			{
				8u
			};
			object.ReferenceEquals(micromsg.Proto.BottleInfo.Descriptor, null);
		}
	}
}
